package com.model.demo.designmodel.observer.gper;

public class GPerTest {
    public static void main(String[] args) {
        GPer gper=GPer.getInstance();
        Question question = new Question();
        question.setUserName("小花");
        question.setContent("单例模式有哪些？");
        Teacher teacher = new Teacher("莫聪");
        gper.addObserver(teacher);
        gper.publishQuesion(question);

    }
}
